<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>common_util: src/common_util/filetype.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">common_util<span id="projectnumber">&#160;1.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_2961cad218251a7c35c6867350b80887.html">common_util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">filetype.h</div></div>
</div><!--header-->
<div class="contents">
<a href="filetype_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="keyword">namespace </span>cutl</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span>{</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="filetype_8h.html#a7c0e573c7e0cd198d3119f6c41afe740">   31</a></span>    <span class="keyword">constexpr</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="filetype_8h.html#a7c0e573c7e0cd198d3119f6c41afe740">MAX_PATH_LEN</a> = 1024;</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span> </div>
<div class="foldopen" id="foldopen00037" data-start="{" data-end="};">
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28c">   37</a></span>    <span class="keyword">enum</span> <a class="code hl_enumeration" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28c">filetype</a></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>    {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28ca236f879cb9a7c7b2fd492501b37b93df">   40</a></span>        <a class="code hl_enumvalue" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28ca236f879cb9a7c7b2fd492501b37b93df">ft_unknown</a> = 0x00,</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28caf6f3afe53ce3b3e5fa9b13ecb2fa6d29">   42</a></span>        <a class="code hl_enumvalue" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28caf6f3afe53ce3b3e5fa9b13ecb2fa6d29">ft_directory</a> = 0x01,</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28ca73832a550c08856f1067f13b5ed85363">   44</a></span>        <a class="code hl_enumvalue" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28ca73832a550c08856f1067f13b5ed85363">ft_file</a> = 0x02,</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28cada2237cf113c873ff3f7710ba06a49a0">   46</a></span>        <a class="code hl_enumvalue" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28cada2237cf113c873ff3f7710ba06a49a0">ft_symlink</a> = 0x04,</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28cad4df65ccafc9d843a5b4769c17c3ea62">   48</a></span>        <a class="code hl_enumvalue" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28cad4df65ccafc9d843a5b4769c17c3ea62">ft_char_special</a> = 0x08,</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28ca9a2f5ff5abd682b09d08610253688fe2">   50</a></span>        <a class="code hl_enumvalue" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28ca9a2f5ff5abd682b09d08610253688fe2">ft_block_special</a> = 0x10,</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28caf97d9741dd387e2ee72450917407a438">   52</a></span>        <a class="code hl_enumvalue" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28caf97d9741dd387e2ee72450917407a438">ft_pipefifo</a> = 0x20,</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28ca22954943ada9cb745f8951241e31cc2a">   54</a></span>        <a class="code hl_enumvalue" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28ca22954943ada9cb745f8951241e31cc2a">ft_socket</a> = 0x40,</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28ca651f8df69e1132444ab2b8e033e575c5">   56</a></span>        <a class="code hl_enumvalue" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28ca651f8df69e1132444ab2b8e033e575c5">ft_all</a> = 0xFF,</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>    };</div>
</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span> </div>
<div class="foldopen" id="foldopen00063" data-start="{" data-end="};">
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="structcutl_1_1file__entity.html">   63</a></span>    <span class="keyword">struct </span><a class="code hl_struct" href="structcutl_1_1file__entity.html">file_entity</a></div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>    {</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="structcutl_1_1file__entity.html#a0ee8ddd0d728a15d34d4b6e641eec18b">   66</a></span>        <a class="code hl_enumeration" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28c">filetype</a> <a class="code hl_variable" href="structcutl_1_1file__entity.html#a0ee8ddd0d728a15d34d4b6e641eec18b">type</a> = { filetype::ft_unknown };</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="structcutl_1_1file__entity.html#aa0e3fea1b1db91bd27adadefb745adc8">   68</a></span>        std::string <a class="code hl_variable" href="structcutl_1_1file__entity.html#aa0e3fea1b1db91bd27adadefb745adc8">filepath</a>;</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>    };</div>
</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span> </div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="filetype_8h.html#a4fc4cd499e8fa84c01f6288b737d619e">   75</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="filetype_8h.html#a4fc4cd499e8fa84c01f6288b737d619e">filevec</a> = std::vector&lt;file_entity&gt;;</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span> </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>} <span class="comment">// namespace cutl</span></div>
<div class="ttc" id="afiletype_8h_html_a4fc4cd499e8fa84c01f6288b737d619e"><div class="ttname"><a href="filetype_8h.html#a4fc4cd499e8fa84c01f6288b737d619e">cutl::filevec</a></div><div class="ttdeci">std::vector&lt; file_entity &gt; filevec</div><div class="ttdoc">The vector of file_entity.</div><div class="ttdef"><b>Definition</b> filetype.h:75</div></div>
<div class="ttc" id="afiletype_8h_html_a7c0e573c7e0cd198d3119f6c41afe740"><div class="ttname"><a href="filetype_8h.html#a7c0e573c7e0cd198d3119f6c41afe740">cutl::MAX_PATH_LEN</a></div><div class="ttdeci">constexpr int MAX_PATH_LEN</div><div class="ttdoc">Constants value: max path length.</div><div class="ttdef"><b>Definition</b> filetype.h:31</div></div>
<div class="ttc" id="afiletype_8h_html_a9d3ee53b2774c37cc5a17766507de28c"><div class="ttname"><a href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28c">cutl::filetype</a></div><div class="ttdeci">filetype</div><div class="ttdoc">The type of file.</div><div class="ttdef"><b>Definition</b> filetype.h:38</div></div>
<div class="ttc" id="afiletype_8h_html_a9d3ee53b2774c37cc5a17766507de28ca22954943ada9cb745f8951241e31cc2a"><div class="ttname"><a href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28ca22954943ada9cb745f8951241e31cc2a">cutl::ft_socket</a></div><div class="ttdeci">@ ft_socket</div><div class="ttdef"><b>Definition</b> filetype.h:54</div></div>
<div class="ttc" id="afiletype_8h_html_a9d3ee53b2774c37cc5a17766507de28ca236f879cb9a7c7b2fd492501b37b93df"><div class="ttname"><a href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28ca236f879cb9a7c7b2fd492501b37b93df">cutl::ft_unknown</a></div><div class="ttdeci">@ ft_unknown</div><div class="ttdef"><b>Definition</b> filetype.h:40</div></div>
<div class="ttc" id="afiletype_8h_html_a9d3ee53b2774c37cc5a17766507de28ca651f8df69e1132444ab2b8e033e575c5"><div class="ttname"><a href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28ca651f8df69e1132444ab2b8e033e575c5">cutl::ft_all</a></div><div class="ttdeci">@ ft_all</div><div class="ttdef"><b>Definition</b> filetype.h:56</div></div>
<div class="ttc" id="afiletype_8h_html_a9d3ee53b2774c37cc5a17766507de28ca73832a550c08856f1067f13b5ed85363"><div class="ttname"><a href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28ca73832a550c08856f1067f13b5ed85363">cutl::ft_file</a></div><div class="ttdeci">@ ft_file</div><div class="ttdef"><b>Definition</b> filetype.h:44</div></div>
<div class="ttc" id="afiletype_8h_html_a9d3ee53b2774c37cc5a17766507de28ca9a2f5ff5abd682b09d08610253688fe2"><div class="ttname"><a href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28ca9a2f5ff5abd682b09d08610253688fe2">cutl::ft_block_special</a></div><div class="ttdeci">@ ft_block_special</div><div class="ttdef"><b>Definition</b> filetype.h:50</div></div>
<div class="ttc" id="afiletype_8h_html_a9d3ee53b2774c37cc5a17766507de28cad4df65ccafc9d843a5b4769c17c3ea62"><div class="ttname"><a href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28cad4df65ccafc9d843a5b4769c17c3ea62">cutl::ft_char_special</a></div><div class="ttdeci">@ ft_char_special</div><div class="ttdef"><b>Definition</b> filetype.h:48</div></div>
<div class="ttc" id="afiletype_8h_html_a9d3ee53b2774c37cc5a17766507de28cada2237cf113c873ff3f7710ba06a49a0"><div class="ttname"><a href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28cada2237cf113c873ff3f7710ba06a49a0">cutl::ft_symlink</a></div><div class="ttdeci">@ ft_symlink</div><div class="ttdef"><b>Definition</b> filetype.h:46</div></div>
<div class="ttc" id="afiletype_8h_html_a9d3ee53b2774c37cc5a17766507de28caf6f3afe53ce3b3e5fa9b13ecb2fa6d29"><div class="ttname"><a href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28caf6f3afe53ce3b3e5fa9b13ecb2fa6d29">cutl::ft_directory</a></div><div class="ttdeci">@ ft_directory</div><div class="ttdef"><b>Definition</b> filetype.h:42</div></div>
<div class="ttc" id="afiletype_8h_html_a9d3ee53b2774c37cc5a17766507de28caf97d9741dd387e2ee72450917407a438"><div class="ttname"><a href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28caf97d9741dd387e2ee72450917407a438">cutl::ft_pipefifo</a></div><div class="ttdeci">@ ft_pipefifo</div><div class="ttdef"><b>Definition</b> filetype.h:52</div></div>
<div class="ttc" id="astructcutl_1_1file__entity_html"><div class="ttname"><a href="structcutl_1_1file__entity.html">cutl::file_entity</a></div><div class="ttdoc">file entity struct. include file type and file path.</div><div class="ttdef"><b>Definition</b> filetype.h:64</div></div>
<div class="ttc" id="astructcutl_1_1file__entity_html_a0ee8ddd0d728a15d34d4b6e641eec18b"><div class="ttname"><a href="structcutl_1_1file__entity.html#a0ee8ddd0d728a15d34d4b6e641eec18b">cutl::file_entity::type</a></div><div class="ttdeci">filetype type</div><div class="ttdef"><b>Definition</b> filetype.h:66</div></div>
<div class="ttc" id="astructcutl_1_1file__entity_html_aa0e3fea1b1db91bd27adadefb745adc8"><div class="ttname"><a href="structcutl_1_1file__entity.html#aa0e3fea1b1db91bd27adadefb745adc8">cutl::file_entity::filepath</a></div><div class="ttdeci">std::string filepath</div><div class="ttdef"><b>Definition</b> filetype.h:68</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
